package com.cyys.modules.system.model.recycle;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cyys.common.model.BaseBean;
import com.cyys.common.utils.StringUtil;
import com.cyys.modules.core.sysParam.ParamBasicUtil;
import com.cyys.modules.core.sysParam.ParamConstants;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

/**
* @description 
* @author LC
* @date 2020-10-30
*/
@Data
@TableName("sys_recycle")
public class SysRecycle extends BaseBean {
	private String tableName; //系统表

	@TableField(condition = SqlCondition.LIKE)
	private String tableComment; //系统资源名称

	private String isOpen; //是否开启回收功能

	private String queryCols;

	@JsonIgnore
	public String getIsOpenName(){
		if(StringUtil.isNotBlank(isOpen)){
			return ParamBasicUtil.getParamBasicTypeMap().get(ParamConstants.YES_NO).get(isOpen);
		}
		return "";
	}
}
